package main

import "fmt"

type Student struct {
	Name string `json:"name"`
	Age  int    `json:"age"`
	//Score int    `7json:"score"`
	Score int `json:"score"`
}

func (student *Student) String() string {
	n := fmt.Sprintf("%v,%v,%v", student.Name, student.Age, student.Score)
	return n

}

//var nums [3][3]int = [3][3]int{
//	{1, 2, 3},
//	{4, 5, 6},
//	{7, 8, 9},
//}

//func change(nums [3][3]int) [3][3]int {
//	var temp = 0
//	for i := 0; i < len(nums); i++ {
//		for j := 0; j < len(nums[0]); j++ {
//			if i < j {
//				temp = nums[i][j]
//				nums[i][j] = nums[j][i]
//				nums[j][i] = temp
//			}
//
//		}
//	}
//	return nums
//
//}

func main() {
	var student Student = Student{"www", 19, 56}
	result := student.String()
	fmt.Println(result)
	fmt.Println(&student)
	fmt.Println(student)
	//nums := change(nums)
	//fmt.Println(nums)
}
